﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Com.CMS263.PO
{
    public class ArtBase
    {
        /// <summary>
        /// 自动生成的编号
        /// </summary>
        public virtual int id { get; set; }
        /// <summary>
        /// 所属分类编号
        /// </summary>
        public virtual int typeId { get; set; }
        /// <summary>
        /// 文章标题
        /// </summary>
        public virtual string title { get; set; }
        
        /// <summary>
        /// 添加时间
        /// </summary>
        public virtual DateTime addDate { get; set; }
        /// <summary>
        /// 排序编号
        /// </summary>
        public virtual int orderNum { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        public virtual int isShow { get; set; }
        /// <summary>
        /// 是否推荐显示
        /// </summary>
        public virtual int isBest { get; set; }
        /// <summary>
        /// 点击次数
        /// </summary>
        public virtual int clickCount { get; set; }
        /// <summary>
        /// 扩展属性的值
        /// </summary>
        public virtual IList<ExtValue> valueList { get; set; }
        /// <summary>
        /// 网站项目类别编号，也就是菜单的编号
        /// </summary>
        public virtual int menuId { get; set; }
        /// <summary>
        /// 此文章属于哪篇文章，主要用与一篇文章关联一组数据时
        /// </summary>
        public virtual int artId { get; set; }
    }
    public class ExtValueList
    {
        /// <summary>
        /// 显示的名字
        /// </summary>
        /// 
        public  string attrTxtName { get; set; }
        /// <summary>
        /// 属性类型0为单行文本1为多行文本2为在线编辑器3为下拉列表框4为图片类型5为其他上传文件类型
        /// </summary>
        public  int attrType { get; set; }
        /// <summary>
        /// 属性的值
        /// </summary>
        public string val { get; set; }
        /// <summary>
        /// 扩展属性编号
        /// </summary>
        public int attrId { get; set; }

    }
}
